package com.clstu.qqclient.service;

import java.util.HashMap;

/**
 * 该类用于管理本机与服务端连接的所有的线程类
 */
public class ManageClientConnectServerThread {
    private static HashMap<String,ClientConnectServerThread> hm = new HashMap<>();//创建HashMap来管理这些线程对象

    public static void addClientConnectServerThread(String userID, ClientConnectServerThread clientConnectServerThread){
        hm.put(userID,clientConnectServerThread);
    }

    public static void removeClientConnectServerThread(String userID){
        hm.remove(userID);
    }

    public static ClientConnectServerThread getClientConnectServerThread(String userID){
        return hm.get(userID);
    }

}
